package com.lemon.blog.web.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.lemon.common.core.annotation.Excel;
import com.lemon.common.core.base.BaseEntity;
import com.lemon.common.core.serializer.JsonLongDeserializer;
import com.lemon.common.core.serializer.JsonLongSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 包名称：com.lemon.blog.domain
 * 类名称：BlLink
 * 类描述：友情链接对象 bl_link
 * 创建人：@author huangpeng
 * 创建时间：2022-05-04
 */
public class BlLink extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 链接id */
    @JsonSerialize(using = JsonLongSerializer.class)
    @JsonDeserialize(using = JsonLongDeserializer.class)
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String linkName;

    /** 链接地址 */
    @Excel(name = "链接地址")
    private String linkUrl;

    /** 是否启用，0否1是 */
    @Excel(name = "是否启用，0否1是")
    private String enable;

    /**
     * 友链状态： 0 下架， 1：已上线，  2：申请中
     */
    private String linkStatus;

    /**
     * 申请用户ID
     */
    private String userId;

    /**
     * 站长邮箱
     */
    private String email;
    
    /**
     * 网站图标地址
     */
    private String linkIconUrl;

    /** 是否删除，0否1是 */
    private String delFlag;

    /**
     * 排序序号
     */
    private Integer orderNum;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setLinkName(String linkName) 
    {
        this.linkName = linkName;
    }

    public String getLinkName() 
    {
        return linkName;
    }
    public void setLinkUrl(String linkUrl) 
    {
        this.linkUrl = linkUrl;
    }

    public String getLinkUrl() 
    {
        return linkUrl;
    }
    public void setEnable(String enable) 
    {
        this.enable = enable;
    }

    public String getEnable() 
    {
        return enable;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getLinkStatus() {
        return linkStatus;
    }

    public void setLinkStatus(String linkStatus) {
        this.linkStatus = linkStatus;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getLinkIconUrl() {
        return linkIconUrl;
    }

    public void setLinkIconUrl(String linkIconUrl) {
        this.linkIconUrl = linkIconUrl;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("linkId", getId())
            .append("linkName", getLinkName())
            .append("linkUrl", getLinkUrl())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("enable", getEnable())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("linkStatus", getLinkStatus())
            .append("email", getEmail())
            .append("linkIconUrl", getLinkIconUrl())
            .append("userId", getUserId())
            .append("orderNum", getOrderNum())
            .toString();
    }
}
